package com.example.jetpackpractice.startup

import android.content.Context
import android.util.Log
import androidx.startup.Initializer

class BaseLoggerInitializer: Initializer<BaseLogger> {
    override fun create(context: Context): BaseLogger {
        Log.d("MyTest", "BaseLoggerInitializer 被初始化了")
        return BaseLogger()
    }

    override fun dependencies(): MutableList<Class<out Initializer<*>>> {
        Log.d("MyTest", "BaseLoggerInitializer 的依赖项被调用了")
        // 不需要依赖其他初始化器时，返回空的list
        return arrayListOf()
    }
}

class BaseLogger{
    var name = ""
}